package uo.ri.bussiness.impl.admin;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import alb.util.jdbc.Jdbc;


public class FindAllMechanics extends MechanicBase {
	
	
	public List<Map<String, Object>> execute() {
		List<Map<String, Object>> listado = new ArrayList<Map<String, Object>>();
		
		try {
			
			prepareDB();
			
			listado = mecanicosGateway.findAllMechanics();
			
		} catch (SQLException e) {
			throw new RuntimeException(e);
		} finally {
			Jdbc.close(connection);
		}
		return listado;
	}


}
